package com.xf.system.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xf.system.common.model.UserDept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xiefengf
 */
@Repository
public interface UserDeptMapper extends BaseMapper<UserDept> {

    /**
     * 根据部门id,查询对应的所有用户id
     *
     * @param deptId 部门主键id
     * @return 用户id主键集合
     */
    List<Long> selectUserIdByDeptId(@Param("deptId") Long deptId);

}
